<?php
function array_get ( array $arr, $key, $def_val = null )
{
	return array_key_exists ( $key, $arr ) ? $arr [ $key ] : $def_val;
}
